<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>B2C网站会员后台</title>
<link rel="stylesheet" href="__STATIC__/css/user.css">
</head>
<body>
<!-- 网页导航部分 -->
<div class="navbar">
    {notempty name="$Request.session.username"}
    <div class="user-info">
        欢迎您：{$Request.session.username} 
        <a href="{:Url('user/index/logout')}">退出</a>
    </div>
    {/notempty}
    {empty name="$Request.session.username"}
        <script>alert('你还没登录，请先登录!');window.location.href= "{:Url('user/index/login')}";</script>
    {/empty}
</div>

<div class="navbar-a">
    <a href="{:Url('user/index/index')}">网站首页</a>
    <a href="{:Url('user/index/user')}">我的首页</a>
    <a href="{:Url('user/orders/shoppingcar')}">我的购物车</a>
    <a href="{:Url('user/orders/myorders')}">我的订单</a>
</div>

<div class="main">
    <!-- 网页左边显示类别 -->
    <!-- <div class="sidebar">
        <div class="menu-item">
            <a href="{:Url('user/orders/shoppingcar')}">我的购物车</a>
        </div>
        <div class="menu-item">
            <a href="{:Url('user/orders/myorders')}">我的订单</a>
        </div>
        <div class="menu-item">
            <a href="{:Url('user/index/user')}">我的首页</a>
        </div>
    </div> -->
    
    <!-- 网页主体内容部分 -->
    <div class="content2">
        {__CONTENT__}
    </div>
</div>
</body>
</html>